package Random;

public class _470_ImplementRand10UsingRand7 {
    public int rand7(){
        return 0;
    }
    public int rand10() {
        while (true) {
            int res = (rand7() - 1) * 7 + (rand7() - 1);
            if (res < 40) {
                return res % 10 + 1;
            }
        }
    }
}
